package com.mi.rof.engineer.service.impl;

import com.mi.rof.engineer.service.RepairOrderService;
import com.mi.rof.engineer.service.SmsService;
import com.mi.rof.user.service.UserService;
import org.dromara.sms4j.api.SmsBlend;
import org.dromara.sms4j.core.factory.SmsFactory;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author zwq
 */
@Service
public class SmsServiceImpl implements SmsService {

    @Resource
    private RepairOrderService repairOrderService;

    @Resource
    private UserService userService;

    private  static final String SMS_CONFIG_ID = "工单状态变更提醒";

    @Override
    public void sendMessage(String userPhoneNumber, String message) {
        SmsBlend smsBlend = SmsFactory.getSmsBlend(SMS_CONFIG_ID);
        smsBlend.sendMessage(userPhoneNumber,message);
    }

}
